package cn.tedu.csmall.product.controller;

import cn.tedu.csmall.product.web.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 处理属性相关请求的控制器
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
@RestController
@RequestMapping("/attribute-templates")
public class AttributeTemplateController {

    // http://localhost:9080/attribute-templates/111
    @GetMapping("/{id:[0-9]+}")
    public JsonResult getById(@PathVariable Long id) {
        return JsonResult.ok();
    }

}


















